package com.shrcl.engineerprocess.web.server.servlet

import com.google.gwt.user.server.rpc.RPCRequest
import com.uniquesoft.gwt.server.service.common.SpringGwtRemoteServiceServlet
class ApplicationRemoteServiceServlet  extends SpringGwtRemoteServiceServlet {
	private static  long serialVersionUID = -4968059048798982610L
	
	override boolean hasLogin() {
		return getThreadLocalRequest().getSession().getAttribute("__userid__") != null;
	}
	
	override boolean requireSession(RPCRequest rpcRequest) {
		false
//		return !(rpcRequest.getMethod().getName().equals("login")) && !(rpcRequest.getMethod().getName().equals("getLoginUser"))&& !(rpcRequest.getMethod().getName().equals("isSuperUsr"));
	}
} 
